package com.ping.orders.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {

	
	@RequestMapping("/index")
	public ModelAndView index(HttpServletRequest request,HttpServletResponse respose,Model model) {
		System.out.println("test");
		return new ModelAndView("index");
	}
	
	@RequestMapping("/test")
	public ModelAndView test(HttpServletRequest request,HttpServletResponse respose,Model model) {
		System.out.println("test");
		return new ModelAndView("hello");
	}
	
	
}
